#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:settings.py.py
# author:吴凯博
# datetime:2022/5/1 15:18
# software: PyCharm
"""
this is function description
"""
import os

from configparser import ConfigParser

CONFIG_PATH = os.path.dirname(__file__)
CONFIG = ConfigParser()
CONFIG.read(os.path.join(CONFIG_PATH, 'config.conf'), encoding='utf-8')


class Settings(object):

    DATA_POINTS = int(CONFIG['BASIC']['DATA_POINTS'])
    DATA_INTERVAL = int(CONFIG['BASIC']['DATA_INTERVAL'])
    SERVER_PORT = int(CONFIG['BASIC']['SERVER_PORT'])
